<template>
  <div style="padding: 0 30px">
    <el-row>
      <el-col :span="8">
        <span class="blod">训练课程名称:</span><span>1231321313</span>
      </el-col>
      <el-col :span="16">
        <span class="blod">上课班级:</span><span>12</span>
      </el-col>
    </el-row>
    <el-table :data="tableData" border="" style="width: 100%;margin-top: 20px" @selection-change="handleSelectionChange">
      <el-table-column type="index" label="序号" width="50" align="center" />
      <el-table-column label="操作" align="center" width="150">
        <template slot-scope="">
          <el-button size="mini" type="text">编辑</el-button>
          <el-button size="mini" type="text">删除</el-button>
        </template>
      </el-table-column>
      <el-table-column prop="date" label="标准课程" align="center" />
      <el-table-column prop="address" label="任务名称" width="80" align="center" />
      <el-table-column prop="address" label="练习次数" align="center" />
      <el-table-column prop="address" label="任务状态" align="center" />
      <el-table-column prop="address" label="开始时间" align="center" />
      <el-table-column prop="address" label="结束时间" align="center" />
    </el-table>
    <el-pagination
      :current-page="value"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
      background
      style="margin-top: 20px"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    >
    </el-pagination>
    <!-- <div slot="footer" class="dialog-footer">
      <el-button type="primary" size="mini">发布</el-button>
      <el-button size="mini" @click="handCancle">取消</el-button>
    </div> -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        name: ''
      },
      value: 0,
      options: [],
      input: '',
      tableData: [1, 2]
    }
  },
  methods: {
    handCancle() {
      this.$emit('handCancle')
    },
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`)
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`)
    }
  }
}
</script>

<style>
.flex{
  display: flex;
  justify-content: space-between;
}
.el-table th.gutter {
  display: table-cell !important
}
.blod {
  font-weight: bold;
}
</style>
